package dwz.persistence.mapper;

import java.util.List;

import org.apache.ibatis.annotations.Param;

import dwz.persistence.beans.CmsChannel;


public interface CmsChannelMapper {
	
	public List<CmsChannel> selectChannelList();
	
	public List<CmsChannel> selectMenuChannelList();
	//public List<CmsChannel> selectChannelByParam();
	
    //int deleteByPrimaryKey(Integer id);

   // CmsChannel selectByPrimaryKey(Integer id);
    
    List<String> selectWebpathBychannelid(@Param("id") Integer code);
    
    // 根据channelids获取对应的频道名称
    List<String> selectChannelNamebyChannelids(@Param("channelids") List<String> channelids);
    
    // 获取所有非首页频道(所属频道下拉框)
    List<CmsChannel> selectChannelisNotFirst();
    
    // 获取所有首页频道
    List<CmsChannel> selectChannelisFirst();
    
    // 获取所有频道(首页+非首页)
    List<CmsChannel> selectChannelAll();
    
    // 根据频道id号获取对应频道的中文名称
    String selectChannelNameByChannelId(@Param("channelid") Integer channelid);

}